package net.bezrabotnih.cabinet.client.place;

import com.google.gwt.place.shared.Place;


public class MenuItemPlace extends Place{
	
	private String name;
	
	protected String token="view";
	
	public MenuItemPlace() {
	}
	
	public MenuItemPlace(String name) {
		this.name=name;
	}
	
	public MenuItemPlace(String name,String token) {
		this.name=name;
		this.token=token;
	}

	public String getName() {
		return name;
	}
	
	public String getToken() {
		return token;
	}
	
	
	@Override
	public boolean equals(Object obj) {
		if (this.getClass().equals(obj.getClass())) return true;
		if (this.getClass().getSuperclass().equals(obj.getClass())) return true;
		return super.equals(obj);
	}
	
	
}
